package cn.wolfcode.domain;

import lombok.*;
import java.util.HashMap;
import com.alibaba.fastjson.JSON;
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Classinfo {
    private Long id;

    private String name;

    private Integer number;

    private Employee employee;

    public String getJson(){
        HashMap<String,Object> map=new HashMap<>();
        map.put("id",id);
        map.put("name",name);
        map.put("number",number);
        map.put("employee",employee);
        return JSON.toJSONString(map);
    }
}